package com.traning.entity;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the emp_login database table.
 * 
 */
@Entity
@Table(name="emp_login")
public class EmpLogin implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="emp_id")
	private String empId;

	private short active;

	private String email;

	@Column(name="login_attempts")
	private short loginAttempts;

	private String password;

	//bi-directional one-to-one association to EmpInformation
	@OneToOne
	@JoinColumn(name="emp_id", referencedColumnName="emp_id")
	private EmpInformation empInformation;

	public EmpLogin() {
	}

	public String getEmpId() {
		return this.empId;
	}

	public void setEmpId(String empId) {
		this.empId = empId;
	}

	public short getActive() {
		return this.active;
	}

	public void setActive(short active) {
		this.active = active;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public short getLoginAttempts() {
		return this.loginAttempts;
	}

	public void setLoginAttempts(short loginAttempts) {
		this.loginAttempts = loginAttempts;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public EmpInformation getEmpInformation() {
		return this.empInformation;
	}

	public void setEmpInformation(EmpInformation empInformation) {
		this.empInformation = empInformation;
	}

}